#{extends 'overlay.html' /}


<div id="crudBlank" class="${type.name}">
	
	<h2 id="crudBlankTitle">&{'crud.blank.title', type.modelName}</h2>
	
	<div class="objectForm">
	#{form action:@create(), enctype:'multipart/form-data'}
		#{crud.form fields:['name','description']}
			
			#{crud.custom 'name'}
			<label for="object_name">
			Name
			</label>
			<br/>
			<input id="object_name" class="" type="text" name="object.name" value="" size="50" />	
   	    	<span class="crudHelp" style="color:red">*</span>
			#{/crud.custom}
			
			#{crud.custom 'description'}
			<br/>
			<label for="object_description">
			Description
			</label>
			<br/>
			<textarea id="object_description" cols="48" rows="5" class="" name="object.description"></textarea>
   	    	
			#{/crud.custom}
				
		#{/crud.form }
			<input type="hidden" id="object_project" name="object.project@id" value="${currentProject.id}" >
			<br/>
			<small style="color:red"> * Required Fields </small>
		<p class="crudButtons">
			<input type="submit" name="_save" value="&{'crud.save', type.modelName}" />
		</p>
	#{/form}
	</div>

</div>